class LlmResponse {
  String message;
  LlmResponse({required this.message});

  factory LlmResponse.fromJson(Map<String, dynamic> json) => switch (json) {
        {'choices': List choices} =>
          LlmResponse(message: choices[0]['message']['content']),
        _ => throw const FormatException('Failed to load album.'),
      };
}
